package com.sjx.onelinecord.test;

import java.util.ArrayList;
import java.util.List;


public class GenericTrial {

    public static void main(String[] args) {
        List<String> strings = new ArrayList<>();
        unSafeAdd(strings, "12");
        String s = strings.get(0);
        System.out.println(s);
    }

    //采用原生态类型
    private static void unSafeAdd(List list, Object o) {
        list.add(o);
    }

}
